﻿@{
    ViewBag.Title = "Home Page";
}

<h2>Dependency injection with Unity.Mvc3</h2>
<h3>@ViewBag.Message1</h3>
<p>ExampleContext -> UpperCaseService -> Controller -> View</p>
<h3>@ViewBag.Message2</h3>
<p>ExampleContext -> LowerCaseService -> Controller -> View</p>

<p>Step through the code and you can see that the ExampleContext constructor is being hit once per web request. The context is shared by both
services. At the end of the request, the dispose method of ExampleContext is called and all context resources are released.</p>